import java.util.*;
public class Main10 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int pass = 0;

        for(int i = 0;i<n;i++){
            int score = sc.nextInt();
            if(score<0||score>100){
                System.out.println(score+"invalid!");
                i--;
            }
            else{
                if(score>=60)
                pass++;
            }
        }

        System.out.println(pass);
        System.out.println(n-pass);

        sc.close();
    }
}
